package cn.edu.nju.software.cdiy.service;

import java.util.*;

import cn.edu.nju.software.cdiy.bean.*;

public interface HcommentService {

	public List<Hcomment> getUserComments(Long userid);

	public Hcomment saveHComment(Hcomment comment);

	public void deleteHComment(Hcomment comment);

	public void deleteHCommentByID(Long hcommentid);

	// 普通用户分页查询
	public List<Hcomment> getUserHCommentPage(int hardwareid, String hardwareType, int page);

	// 专家用户分页查询
	public List<Hcomment> getExpertHCommentPage(int hardwareid, String hardwareType, int page);
	
	public int getUserHCommentLength(int hardwareid, String hardwareType);
	
	public int getExpertHCommentLength(int hardwareid, String hardwareType);

	public List<Integer> getUserNumberList(int hardwareid, String hardwareType);
	
	public List<Integer> getExpertNumberList(int hardwareid, String hardwareType);

	//获得最新的硬件评论
	public Hcomment getNewUserHComment(int hardwareid, String hardwareType);
	//获得最新的硬件专家评论
	public Hcomment getNewExpertHComment(int hardwareid, String hardwareType);
	
}
